<?php
@session_start();
$PurviewLevel=3;
$CheckChannelID=1 ;  
$PurviewLevel_Others="";

require("../../inc/common.inc.php");
require_once("../Admin_ChkPurview.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">	
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<TITLE>铭讯EOS网站后台管理</TITLE>
<Meta name="Keywords" Content="济南网站建设 济南网站制作 山东网站建设 济南铭讯软件有限公司">
<Meta name="Description" Content="济南网站制作：铭讯软件专业服务优秀企业，致力于网站建、设网站推广、网络营销一体的全访位网络服务商">
<link rel="stylesheet" href="../images/style.css" type="text/css">
</head>
<script language="javascript">
function dianji(){
  if(document.siteForm.fid.value==""){
    alert("请选择所属类别！");
	document.siteForm.fid.focus();
	return false;
  }
  if(document.siteForm.title.value==""){
    alert("标题不能为空！");
	document.siteForm.title.focus();
	return false;
  }
   if(document.siteForm.description.value==""){
    alert("信息摘要不能为空！");
	document.siteForm.description.focus();
	return false;
  }
}

function setkey(a){
  document.all.keyword.value += a+"|" ;
}
function setauthor(a){
  document.all.author.value = a ;
}
function setcopyfrom(a){
  document.all.copyfrom.value = a ;
}

</script>
<body> 
<?php
require("../mx_head.php");
?>
<div class="right">
<div class="xm2">
<h1 class="fl">发布信息</h1>
</div>
<div class="xm2_b">
<div class="height10"></div>
<table width="100%" border="0" cellspacing="1" cellpadding="5" class="table_southidc">
<form name="siteForm" method="post" action="yx_vpp_article_save.php" onSubmit="return dianji()" id="form1" enctype="multipart/form-data">
<tr class="list">
  <td width="15%" align="right"><strong>所属栏目：</strong></td>
  <td width="85%">
  <?php
    //$sort_fup=$Guidedb->Select("mx_vpp_articleclass ","postdb[fid]",$rsdb[fup],"","",$array_artclass[$bc]);
    $sort_fup=$Guidedb->Select("mx_vpp_articleclass ","fid",$rsdb[fup],"prview","",0);
    echo $sort_fup;
  ?> <font color="#FF0000">*</font>
  </td>
</tr>
<tr class="list">
  <td align="right"><strong>信息标题：</strong></td>
  <td>
  <table cellpadding="0" cellspacing="0" onclick="0"><tr><td><input type="text" name="postdb[title]" id="title" size="50"></td>
  <td>&nbsp;</td>
  <td>
  <select name="postdb[titlecolor]"><option value="">颜色</option>
          <option value="#000000" style="background-color:#000000">&nbsp;</option>
          <option value="#008000" style="background-color:#008000">#008000</option>
          <option value="#800000" style="background-color:#800000">#800000</option>
          <option value="#808000" style="background-color:#808000">#808000</option>
          <option value="#000080" style="background-color:#000080">#000080</option>
          <option value="#800080" style="background-color:#800080">#800080</option>
          <option value="#808080" style="background-color:#808080">#808080</option>
          <option value="#FFFF00" style="background-color:#FFFF00">#FFFF00</option>
          <option value="#00FF00" style="background-color:#00FF00">#00FF00</option>
          <option value="#00FFFF" style="background-color:#00FFFF">#00FFFF</option>
          <option value="#FF00FF" style="background-color:#FF00FF">#FF00FF</option>
          <option value="#FF0000" style="background-color:#FF0000">#FF0000</option>
          <option value="#0000FF" style="background-color:#0000FF">#0000FF</option>
          <option value="#008080" style="background-color:#008080">#008080</option></select>
	</td>
	<td>&nbsp;</td>
	<td>
       <select name="postdb[fonttype]"><option value="">字形</option>
          <option value="1">粗体</option>
          <option value="2">斜体</option>
          <option value="3">粗+斜</option>
          <option value="0">规则</option>
		</select>
	</td><td>&nbsp;<font color="#FF0000">*</font></td></tr></table>
	</td>
</tr>
<tr class="list" style="display:none;">
  <td align="right"><strong>短 标 题：</strong></td>
  <td><input type="text" name="postdb[smalltitle]" id="smalltitle" size="50"></td>
</tr>
<tr class="list" style="display:none;">
  <td align="right"><strong>关 键 字：</strong></td>
  <td><label><input type="text" name="postdb[keywords]" id="keywords" size="50"></label></td>
</tr>
<tr class="list">
  <td width="130" align="right"><strong>普 通 价：</strong></td>
  <td><label><input type="text" name="postdb[price]" id="keywords" size="50" value="<?php echo $rsdb[price] ?>"></label></td>
</tr>
<tr class="list">
  <td width="130" align="right"><strong>会 员 价：</strong></td>
  <td><label><input type="text" name="postdb[vipprice]" id="keywords" size="50" value="<?php echo $rsdb[vipprice] ?>"></label></td>
</tr>
<tr class="list" style="display:none;">
  <td align="right"><strong>信息作者：</strong></td>
  <td><label>
     <input type="text" name="postdb[author]" size="50" id="author" value="">
   &lt;=【<a href="javascript:setauthor('<?php echo $webdb["vpp_jigoucode"]?>');"><?php echo $webdb["vpp_jigoucode"]?></a>】【<a href="javascript:setauthor('未知');">未知</a>】【<a href="javascript:setauthor('佚名');">佚名</a>】【<a href="javascript:setauthor('<?php echo $_SESSION['mxadmin']['realname']?>');"><?php echo $_SESSION['mxadmin']['realname']?></a>】</label>
   </td>
</tr>
<tr class="list">
  <td align="right"><strong>信息来源：</strong></td>
  <td><input type="text" name="postdb[copyfrom]" size="50" id="copyfrom" value=""> &lt;=【<a href="javascript:setcopyfrom('<?php echo $webdb["vpp_jigoucode"]?>');"><?php echo $webdb["vpp_jigoucode"]?></a>】【<a href="javascript:setcopyfrom('本站');">本站</a>】【<a href="javascript:setcopyfrom('转载');">转载</a>】</td>
</tr>
<tr class="list">
  <td align="right"><strong>转向链接：</strong></td>
  <td>
    <label><input type="text" name="postdb[jumpurl]" size="50" value=""></label>
    <input type="checkbox" name="postdb[iframeurl]" value="1" class="input_check">使用转向连接
  </td>
</tr>
<tr class="list">
  <td align="right"><strong>信息摘要：</strong></td>
  <td><label>
    <textarea name="postdb[description]" id="description" cols="70" rows="3"></textarea></label>
  </td>
</tr>
<tr class="list">
  <td align="right"><strong>信息内容：</strong></td>
  <td valign="top">	
	  <script charset="utf-8" src="/webedito/kindeditor-min.js"></script>
	  <script charset="utf-8" src="/webedito/lang/zh_CN.js"></script>
	  <script>
	  var editor;
	  KindEditor.ready(function(K) {
	  	  	editor = K.create('textarea[id="content"]', {
			allowFileManager : true,
			filterMode : false,
			afterBlur : function() {this.sync();}
	  	  });
});
	  </script>
	  <textarea name="postdb[content]" id="content" style="width:100%;height:400px;visibility:hidden;display:none;"></textarea>
  </td>
</tr>
<tr class="list">
  <td align="right"><font color="#FF0000"><strong>缩 略 图：</strong></font></td>
  <td><input name="picurl" type="file" />&nbsp;标准图片尺寸：480px*270px</td>
</tr>
<tr class="list">
  <td align="right"><strong> 视频路径：</strong></td>
  <td>
  <textarea name='flvurl' id="flvurl" cols="40" rows="4"></textarea>&nbsp;<a href="javascript:show_uplode('upfile','flv','flvurl')"><font color="#FF0000">点击上传</font></a>
  </td>
</tr>
<?php if($Purview==1 or strpos("****".$OtherPurview,'shenhe')>0){?>
<tr class="list">
  <td align="right"><strong>信息属性：</strong></td>
  <td>
    <input type="checkbox" name="postdb[ishome]" value="1" class="input_check" <?php  if($rsdb[ishome]==1){echo "checked";}?>>  首页显示
    <input type="checkbox" name="postdb[ishot]" value="1" class="input_check" <?php  if($rsdb[ishot]==1){echo "checked";}?>>  热门
	<input type="checkbox" name="postdb[levels]" value="1" class="input_check" <?php if($rsdb[levels]==1){echo "checked";}?>>  推荐
    <input type="checkbox" name="postdb[istop]" value="1" class="input_check" <?php if($rsdb[istop]==1){echo "checked";}?>>  置顶
  </td>
</tr>
<?php }?>
<tr class="list">
  <td align="right"><strong>信息排序：</strong></td>
  <td><label><input type="text" name="postdb[orderid]" size="30" value="666"></label>&nbsp;越小越靠前</td>
</tr>
<tr class="list">
  <td width="130" align="right"><strong>阅读数量：</strong></td>
  <td><label><input type="text" name="postdb[hits]" size="30" value="<?php echo $rsdb["hits"]?>"></label>
  </td>
</tr>
<tr class="list">
  <td align="right"><strong>录入时间：</strong></td>
  <td><label>
    <input type="text" name="postdb[posttime]" size="30" value="<?php echo date("Y-m-d H:i:s",time())?>">
     时间格式为“年-月-日”，如：2003-5-12</label>
  </td>
</tr>
<tr class="list">
  <td align="right"><strong>立即发布：</strong></td>
  <td>
	 <input name="postdb[yz]" type="checkbox" value="1" checked class="input_check">
     是<font color="#0000FF">（如果选中的话将直接发布，否则审核后才能发布。）</font> </td>
 </tr>
<tr class="list">
  <td height="40" align="center" colspan="2">
      <label>
	    <input type="hidden" name="bc" value="<?php echo $bc?>">
	    <input type="hidden" name="action" value="saveadd">
        <input type="submit" name="Submit" value="提 交" class="button" /> 
        &nbsp;&nbsp;
      <input type="reset" name="button" value="取 消" class="button2"/>
      </label></td>
</tr>
</form>
</table>
<div class="clear"></div>
<div class="height10"></div>
</div>
<div class="height10"></div>
</div>
<?php require("../mx_foot.php");?>
</body>
</html>
